#ifndef _TEXTURE_H
#define _TEXTURE_H

#include "math/color.h"

namespace TG
{
	class Texture
	{
	private:
		int _width;
		int _height;
		Rgba* _pixel;

	public:
		static Texture* load(const char* fileName);

		Texture(int width, int height, void* data):_width(width),_height(height)
		{
			_pixel = (Rgba *)data;
		}

		Rgba getPixel(unsigned int x, unsigned int y);
		Rgba getPixelUV(float u, float v);
	};
}
#endif